package com.itheima.reggie.dto;

import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.DishFlavor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 表现层封装数据的实体类
 *      具有dish的所有属性
 *      具有分类名称;categoryName
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DishDTO extends Dish {

    private String categoryName;

    private List<DishFlavor> flavors;
}
